import request from "../utils/request";
//登录接口
const Login = () => {
    return request({
        url:"/login",
        method:"post",
        data:{
            account:"xiaotuxian001",
            password:"123456"
        }
    })
}
/* 获取nav那页nav数据 */
const getNav = (num) => {
    return request({
        url:"/category/sub/filter",
        method:"get",
        params:{
            id:num
        }
    })
}
/* 点击nav元素获取数据 */
const getNavLi = () => {
    return request({
        url:"/category/goods/temporary",
        method:"post",
        headers:{
            "Content-Type":"application/json"
        }
    })
}
export default {
    Login,
    getNav,
    getNavLi
}